<div class="widget">
	<h5 class="title">Top Views</h5>
	<ol class="list">
	<?php $topview = $this->getPostTopView(10); 
	
	if($topview) foreach ($topview as $top){
		echo  "<li><a href=\"".
		$this->url(array('controller'=>'post', 'action'=>'view', 'id'=>$top->alias), 'post')
		."\">{$top->title}</a></li>";
	}
	
	?>
	</ol>
</div>